package com.infore.airsupervise.app;

/**
 * 状态常量
 * <p>
 * 作者: dingxinlin
 * 创建日期: 2017/4/1 9:50
 */

public class StatusConst {

    /**
     * 响应状态码
     */
    public static final int CODE_STATUS_OK = 200;
    public static final int CODE_CONNECT_FAIL = -1000;
    public static final int CODE_CONNECT_TIMEOUT = -1001;
    public static final int CODE_SERVER_EXCEPTION = -1002;

    public static final int CODE_OPERATION_FAIL = 0;
    public static final int CODE_OPERATION_SUCCESS = 1;
    public static final int CODE_OPERATION_OUTLINE = -1;

    /**
     * 检测类型
     */
    public static final int AIR_TYPE_PM10 = 1;
    public static final int AIR_TYPE_PM25 = 2;
    public static final int AIR_TYPE_SO2 = 3;
    public static final int AIR_TYPE_NO2 = 4;
    public static final int AIR_TYPE_CO = 5;
    public static final int AIR_TYPE_O3 = 6;
    public static final int AIR_TYPE_VOC = 7;
    public static final int AIR_TYPE_AQI = 0;

    /**
     * 历史数据类型
     */
    public static final int STATISTIC_HOUR = 0;
    public static final int STATISTIC_DAY = 1;
    public static final int STATISTIC_MONTH = 2;

    /**
     * 任务状态
     */
    public static final int MISSION_STATUS_HANDLE= 1; //待办
    public static final int MISSION_STATUS_FINISH = 2; //已办（无审核）/ 已办未审核
    public static final int MISSION_STATUS_EXAMINE = 3;//已办( 已审核)
    //待办
    public static final int MISSION_DB = 1;
    //已办
    public static final int MISSION_YB = 2;
    //待审
    public static final int MISSION_DS_ME = 3;
    //已审(我）
    public static final int MISSION_YS = 5;
    //待审(我)
    public static final int MISSION_DS = 4;
    //指派
    public static final int MISSION_ZP = 6;

    /*
    流程
     */
    public static final int MISSION_PROCESS_1 = 1; //发起任务 或 待处理
    public static final int MISSION_PROCESS_2 = 2; //处理完成
    public static final int MISSION_PROCESS_3 = 3;  //审核通过
    public static final int MISSION_PROCESS_4 = 4;  //审核不通过
    public static final int MISSION_PROCESS_5 = 5;  //审核中


    /**
     * 现场执法详情
     */
    public static final int SITE_LEDGER_CHECK= 1;
    public static final int SITE_LEDGER_INSPECT = 2;
    public static final int SITE_LEDGER_ASK = 3;

    /**
     * 记录类型 int -> string
     */
    public static String modelTypeTransfer(int type){
        String str_type = "现场询问笔录";
        switch (type){
            case StatusConst.SITE_LEDGER_ASK :
                str_type = "现场询问笔录";
                break;
            case StatusConst.SITE_LEDGER_CHECK :
                str_type = "现场监察记录";
                break;
            case StatusConst.SITE_LEDGER_INSPECT :
                str_type =  "现场检查（勘察）笔录";
                break;
        }
        return str_type;
    }

    //站点类型
    public static final int STATION_ALL= 3 ;
    public static final int STATION_NATION = 2 ;
    public static final int STATION_POLLUTION = 1;
    public static final int STATION_MICRO = 0;



}
